require('lsp.lua-language-server')
require('lsp.clangd')
require('lsp.gopls')

vim.diagnostic.config({
	virtual_text = true,
	-- virtual_lines = true,
	float = {
		border = 'rounded',
	}
})

-- vim.api.nvim_create_autocmd('LspAttach', {
-- 	callback = function(event)
-- 		local client = vim.lsp.get_client_by_id(event.data.client_id)
-- 		if client ~= nil and client:supports_method('textDocument/foldingRange') then
-- 			local win = vim.api.nvim_get_current_win()
-- 			vim.wo[win][0].foldexpr = 'v:lua.vim.lsp.foldexpr()'
-- 			-- vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
-- 		end
-- 	end,
-- })
